<?php
declare (strict_types = 1);

namespace app\model;

use app\BaseController;
use think\Model;

/**
 * @property int $id
 * @property int $weigh 权重
 * @property string $createtime
 * @property string $name_s 简体类目
 * @property string $name_t 繁体类目
 * @property-read mixed $name
 * @mixin \think\Model
 */
class NewsClass extends Model
{
    protected $createTime = 'createtime';

    protected $append = [
        'name'
    ];


    
    function getNameAttr($value,$data)
    {
        return $data['name'.BaseController::$lang];
    }


}
